import React, { Component,Fragment } from 'react';
import styles from './SearchInput.module.scss';
//实现路由跳转
import {withRouter} from 'react-router-dom';

class SearchInput extends Component {
    render() {
        return (
            <Fragment>
                <div className={styles.search} onClick={()=>{
                    this.props.history.push('search');
                }}>
                <div className={styles.searchbox}>搜索</div>
                </div>
            </Fragment>
        )
    }
}
export default withRouter(SearchInput)
